package com.numberone.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.numberone.system.mapper.AboutFatherMapper;
import com.numberone.system.domain.AboutFather;
import com.numberone.system.service.IAboutFatherService;
import com.numberone.common.support.Convert;

/**
 * 企业创始人 服务层实现
 * 
 * @author numberone
 * @date 2020-09-27
 */
@Service
public class AboutFatherServiceImpl implements IAboutFatherService 
{
	@Autowired
	private AboutFatherMapper aboutFatherMapper;

	/**
     * 查询企业创始人信息
     * 
     * @param id 企业创始人ID
     * @return 企业创始人信息
     */
    @Override
	public AboutFather selectAboutFatherById(Long id)
	{
	    return aboutFatherMapper.selectAboutFatherById(id);
	}
	
	/**
     * 查询企业创始人列表
     * 
     * @param aboutFather 企业创始人信息
     * @return 企业创始人集合
     */
	@Override
	public List<AboutFather> selectAboutFatherList(AboutFather aboutFather)
	{
	    return aboutFatherMapper.selectAboutFatherList(aboutFather);
	}
	
    /**
     * 新增企业创始人
     * 
     * @param aboutFather 企业创始人信息
     * @return 结果
     */
	@Override
	public int insertAboutFather(AboutFather aboutFather)
	{
	    return aboutFatherMapper.insertAboutFather(aboutFather);
	}
	
	/**
     * 修改企业创始人
     * 
     * @param aboutFather 企业创始人信息
     * @return 结果
     */
	@Override
	public int updateAboutFather(AboutFather aboutFather)
	{
	    return aboutFatherMapper.updateAboutFather(aboutFather);
	}

	/**
     * 删除企业创始人对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteAboutFatherByIds(String ids)
	{
		return aboutFatherMapper.deleteAboutFatherByIds(Convert.toStrArray(ids));
	}

	@Override
	public List<AboutFather> query() {
		return aboutFatherMapper.selectByList();
	}

}
